package com.mall.shopping.converter;


import com.mall.shopping.dal.entitys.ShoppingCart;
import com.mall.shopping.dto.GetShoppingCartResponse;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;

import java.util.List;

/**
 * @Author: lin
 * @Date: 2020/7/11 22:51
 */

@Mapper(componentModel = "spring")
public interface ShoppingCartToResponse {

    @Mappings({})
    GetShoppingCartResponse CartToResponse(ShoppingCart shoppingCart);

    List<GetShoppingCartResponse> cartToResponseList(List<ShoppingCart> shoppingCarts);
}
